package com.mmz.gulimall.product.feign;

import com.mmz.common.to.SkuEsModel;
import com.mmz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * es远程调用服务
 * @author mangmangguai
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 将上架商品存入es
     * @param skuEsModels
     * @return
     */
    @PostMapping("/search/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
